Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add same_channel() method #123

Merged
merged 1 commit into from
May 20, 2023

Conversation

Sherlock-Holo
Copy link
Contributor

the same_channel() is familiar with futures_channel Sender::same_receiver, however flume is a mpmc library, so use the same_receiver or same_sender name may not fit
this PR allow users to check two Sender, Receiver, SendSink or RecvStream are belong to the same channel or not, that may be helpful in some cases

@zesterer
Copy link
Owner

Thanks, this looks reasonable! Looks like CI failed, I think some of those tests need feature flags on them.

the same_channel() is familiar with futures_channel
Sender::same_receiver, however flume is a mpmc library, so use the
same_receiver or same_sender name may not fit
this PR allow users to check two Sender, Receiver, SendSink or
RecvStream are belong to the same channel or not, that may be helpful in
some cases
@Sherlock-Holo
Copy link
Contributor Author

I have set #[cfg(feature = "async")] for same_send_sink and same_recv_stream, that should fix the CI problem

@zesterer
Copy link
Owner

Thanks!

@zesterer zesterer merged commit bfa2a9b into zesterer:master May 20, 2023
@zesterer
Copy link
Owner

I've just released 0.11.0 with these changes :)

@Sherlock-Holo Sherlock-Holo deleted the same_channel branch August 1, 2024 03:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants